
package com.english.service;

import java.util.List;

import com.english.service.Manager;
import com.english.model.Type;
import com.english.dao.TypeDao;

public interface TypeManager extends Manager {
    /**
     * Retrieves all of the types
     */
    public List getTypes(Type type);

    /**
     * Gets type's information based on id.
     * @param id the type's id
     * @return type populated type object
     */
    public Type getType(final String id);

    /**
     * Saves a type's information
     * @param type the object to be saved
     */
    public void saveType(Type type);

    /**
     * Removes a type from the database by id
     * @param id the type's id
     */
    public void removeType(final String id);
}

